<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    function employee(name, job, born) {
        this.name = name;
        this.job = job;
        this.born = born;
    }

    var bill = new employee("Bill Gates", "Engineer", 1985);
    console.info(Object.prototype)
    console.log(this)
    var err = new Error("sssssss")
    console.log(err)
    console.log(Error.prototype)
    // Object是所有对象的基类


    // 全局对象
    if(!String.prototype.trim){
        String.prototype.trim = function(){
            return String(this).replace(/^s+|s+$/g,"")
        }
    }
    var ss = "sssss"
    console.log(ss.trim() + "a")
</script>